package ooday01;

public class Student {
    String name;
    String  address;
    String className;
    int  age;
    String stuid;
   void student(){
       System.out.println(name+"在学习");
   }
    void say(String ddname){
       System.out.println(this.name+"和"+ddname+"一起在床上愉快的玩耍");
    }
    void say(int age){
       System.out.println("你叫"+this.name+"今年"+this.age+"岁了");
    }
    //成员变量前加this，this指代当前变量，哪个对象调用方法就是哪个对象
    //只能用在方法中,方法访问成员变量之前默认一个this
  Student(String name,int age){

 }

Student(){

}
Student(String name,int age,String className,String stuid){
       this.name=name;
       this.age=age;
       this.className=className;
       this.stuid=stuid;
}

Student(int age,String name){
       this.name=name;
       this.age=age;
}
}
